/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controllers;

import models.Docente;
import play.jobs.OnApplicationStop;

/**
 *
 * @author Administrador
 */
public class Security extends Secure.Security{
    
    static boolean authenticate(String username, String password) {
        //Docentes de prueba
        //new Docente("000001", "1", "Victor Hugo", "Bustamante", "Olivera", "44444444", "Av. Universitaria S/N", "correo1@hotmail.com", "correo2@hotmail.com", "correo3@hotmail.com", "3333333", "5555555","7777777","Asociado","Tiempo Parcial","C. Computacion").save();
        //new Docente("000002", "2", "Jorge", "Chavez", "Soto", "22222222", "Av. La Marina S/N", "correo1@hotmail.com", "correo2@hotmail.com", "correo3@hotmail.com","5555555","7777777","9999999","Asociado","Tiempo Parcial","C. Computacion").save();
        System.out.println("\nAutenticando...");
        return Docente.connect(username, password) != null;
    }
}
